package com.foreknow.demo13;

/**
 * 订单项 OrderItem
 */
public class OrderItem {
    private String pname;//图书的名称
    private double pprice;//图书的单价
    private int num;//购买数量

    public OrderItem(String pname,double pprice,int num) {
        this.pname = pname;
        this.pprice = pprice;
        this.num = num;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public double getPprice() {
        return pprice;
    }

    public void setPprice(double pprice) {
        this.pprice = pprice;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }
}
